package cn.tedu.live8.controller;

import cn.tedu.live8.mapper.ShopIndexMapper;
import cn.tedu.live8.pojo.vo.ShopIndexVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//import javax.jnlp.ServiceManager;
import java.util.List;

@RestController
//@RequestMapping("/service")
public class ShopIndexController {

    @Autowired(required = false)
    ShopIndexMapper mapper;

    @RequestMapping("/service/selectById")
    public List<ShopIndexVO> select(int id){
        System.out.println("!!!!!!");
       List<ShopIndexVO> list=  mapper.list(id);
        System.out.println("list"+mapper.list(id));
return list;

    }
}
